#中英文国家切换
def name2ename(s = ''):
    name = {
        "中国大陆":"China",
        "中国香港":"Hong Kong",
        "中国台湾":"Taiwan",
        "丹麦":"Denmark",
        "伊朗": "Iran",
        "俄罗斯": "Russia",
        "冰岛":"Iceland",
        "加拿大":"Canada",
        "南非":"South Africa",
        "印度":"India",
        "奥地利":"Austria",
        "巴西":"Brazil",
        "希腊":"Greece",
        "德国":"Germany",
        "意大利":"Italy",
        "捷克":"Czechia",
        "新西兰":"New Zealand",
        "日本": "Japan",
        "法国": "France",
        "波兰": "Poland",
        "泰国": "Thailand",
        "澳大利亚": "Australian",
        "爱尔兰": "Ireland",
        "瑞典": "Sweden",
        "瑞士": "Switzerland",
        "美国": "United States",
        "英国": "United Kingdom",
        "荷兰": "Netherlands",
        "西班牙": "Spain",
        "阿根廷": "Argentina",
        "阿联酋": "United Arab Emirates",
        "韩国": "South Korea",
        "黎巴嫩": "Lebanon"
    }
    return name[s]

#国家数据统计
def count_country(country = []):
    map = {}
    for i in country:
        clist = i.split(" ")
        for c in clist:
            en = name2ename(c)
            if en in map.keys():
                map[en] = map[en] + 1
            else:
                map[en] = 1
    return map
